package 设计模式.桥接模式;

import java.util.Random;

/**
 * @description:
 * @author: asd
 * @time: 2022/11/23 23:21
 */
public class AddSomething extends Coffee{
    public AddSomething(ICoffee iCoffee) {
        super(iCoffee);
    }

    @Override
    public void order(int count) {
        System.out.println("要"+count+"bei咖啡");
    }
    public void checkQuality(){
        Random ran=new Random();
        System.out.println(String.format("%s 添加%s",iCoffee.getClass().getSimpleName(),ran.nextBoolean()?"太多":"正常"));
    }
}
